package homework.test03;

public class Test {
    public static void main(String[] args) {
        //1.创建对象,存储数据
        Teacher teacher1 = new Teacher("t001", "杨老师");

        Teacher teacher2 = new Teacher("t002", "李老师");

        //2.创建操作类,操作对象中存储的数据
        TeacherOperator teacherOperator1 = new TeacherOperator(teacher1);
        teacherOperator1.teach();

        TeacherOperator teacherOperator2= new TeacherOperator(teacher2);
        teacherOperator2.teach();
    }
}
